using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EuropeEngulfed.NET
{
    partial class PhaseChangeDialog : Form
    {
        GameController.playerType player = GameController.playerType.AlliedPlayer;
        public PhaseChangeDialog(GameController.playerType player, GameTurn.GameDate gameDate, GameTurn.GamePhase gamePhase, GameTurn.GameSubPhase gameSubPhase)
        {
            InitializeComponent();
            this.player = player;
            if (player == GameController.playerType.AxisPlayer)
                this.BackColor = Color.DarkGray;
            this.gameDateLabel.Text = GameTurn.GameDateToString(gameDate);
            this.gamePhaseLabel.Text = GameTurn.GamePhaseToString(gamePhase);
            this.gameSubPhaseLabel.Text = GameTurn.GameSubPhaseToString(gameSubPhase);
        }

        private void closeButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void nationMarkerPictureBox_Paint(object sender, PaintEventArgs e)
        {
            PictureBox p = (PictureBox)sender;
            if (player == GameController.playerType.AxisPlayer)
                PlayingPieceGraphics.PaintControlMarker(e.Graphics, MapInfo.CountryID.Germany, new Point(p.Width / 2, p.Height / 2), false);
            else
                PlayingPieceGraphics.PaintControlMarker(e.Graphics, MapInfo.CountryID.USA, new Point(p.Width / 2, p.Height / 2), false);
        }
    }
}